package com.ego.ware.feign;

import com.ego.common.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @program: ego
 * @description: 远程订单服务
 * @author: KamTang
 * @create: 2022-12-25 16:44
 **/
@FeignClient("ego-order")
public interface OrderFeign {

    /**
     * 根据订单号获取订单信息
     * @param orderSn 订单号
     * @return @see
     * @see Result
     */
    @GetMapping("/order/status/{orderSn}")
    Result get(@PathVariable("orderSn") String orderSn);
}
